﻿using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace freshflowersHTK.Models
{
    public class FreshFlowerDbContext : DbContext
    {
        public FreshFlowerDbContext()
            : base("FreshFlowerDBContext")
        {

        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }

        public DbSet<Category> Category { get; set; }
        public DbSet<Catalog> Catalog { get; set; }
        public DbSet<Products> Products { get; set; }

        public DbSet<ProductStatus> ProductStatus { get; set; }
        public DbSet<UserProfile> UserProfiles { get; set; }
    }
}